import request from '@/utils/request'
// 收货地址列表
export function orderList(query) {
    return request({
        url: 'mobile/ordOrder/getList' ,
        method: 'post',
        data: query
    })
}
// 售后列表
export function shouhoulist(query) {
    return request({
        url: 'mobile/order/afterSales/list' ,
        method: 'get',
        params: query
    })
}
// afterSalescancel 取消售后
export function afterSalescancel(query) {
    return request({
        url:'mobile/order/afterSales/cancel/'+query,
        method: 'post',
    })
}
// cancelOrder 取消订单
export function cancelOrder(query) {
    return request({
        url:'mobile/ordOrder/cancel',
        method: 'post',
        data: query
    })
}
// deleteOrder 删除订单
export function deleteOrder(query) {
    return request({
        url:'mobile/ordOrder/delete1',
        method: 'post',
        data: query
    })
}
// receipt 确认收货
export function receipt(query) {
    return request({
        url:'mobile/ordOrder/complete',
        method: 'post',
        data: query
    })
}
// orderdetail 订单详情
export function orderdetail(query) {
    return request({
        url:'mobile/orderDetail/getOrderDetail',
        method: 'get',
        params: query
    })
}
// huoquerweima 获取二维码
export function huoquerweima(query) {
    return request({
        url:'/api/pay/qrcodepay/'+query,
        method: 'get',
    })
}
// checkPayStatus 检查支付状态
export function checkPayStatus(query) {
    return request({
        url:'/api/pay/getQrCodePayStatus/'+query,
        method: 'get',
    }) 
}
// getafterSalesdetail 售后详情
export function getafterSalesdetail(query) {
    return request({
        url:'mobile/order/afterSales/'+query,
        method: 'get',
    })
}
// afterSales 申请售后
export function afterSales(query) {
    return request({
        url:'mobile/order/afterSales',
        method: 'post',
        data: query
    })
}
// ordOrder/cancelReason 取消原因
export function cancelReason() {
    return request({
        url:'mobile/ordOrder/cancelReason',
        method: 'get',
    })
}
// fahuo 发货
export function fahuo(query) {
    return request({
        url:'mobile/order/afterSales/sendParcel',
        method: 'post',
        data: query
    })
}
// 获取物流公司下拉
export function getListLogisticsCompanySelect() {
  return request({
    url: 'mobile/logistics/listLogisticsCompanySelect',
    method: 'get'
  })
}
// // 创建商品评价

export function submitpj(data) {
  return request({
    url: 'mobile/ordOrder/appraise',
    method: 'post',
    data:data,
  })
}
